//
//  MusicCollectionViewCell.m
//  A段项目前期
//
//  Created by 杨利佳 on 15/5/19.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "MusicCollectionViewCell.h"

@implementation MusicCollectionViewCell

- (void)dealloc
{
    [_pic release];
    [_category release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
    
        self.pic = [[UIImageView alloc] initWithFrame:CGRectMake(5, 5, self.frame.size.width - 10, self.frame.size.height - 30)];
        [self.contentView addSubview:_pic];
        [_pic release];
    
        self.category = [[UILabel alloc] initWithFrame:CGRectMake(0, _pic.frame.origin.y + _pic.frame.size.height, self.frame.size.width, 30)];
        self.category.backgroundColor = [UIColor whiteColor];
        self.category.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_category];
        [_category release];
        

    }
    return self;
}

@end
